package org.zxb.namedcontextfactorydemo.common;

import org.springframework.context.annotation.Bean;

/**
 * @author zxb
 * @date 2022-04-20 18:12
 **/
public class AllConfig {

    public static class ParentConfig {
        @Bean
        public AllBean.ParentBean parentBean() {
            return new AllBean.ParentBean();
        }
    }

    public static class DefaultConfig {
        @Bean
        public AllBean.DefaultBean defaultBean() {
            return new AllBean.DefaultBean();
        }
    }

    public static class HuaweiConfig {
        @Bean
        public AllBean.HuaweiBean huaweiBean() {
            return new AllBean.HuaweiBean();
        }
    }

    public static class AppleConfig {
        @Bean
        public AllBean.AppleBean appleBean() {
            return new AllBean.AppleBean();
        }
    }

}
